package net.zjitc.dao;

import java.util.List;
import net.zjitc.pojo.AdminUser;
import net.zjitc.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/17 16:15
 * @description:
 */
@Component
public interface AdminDao {
  AdminUser AdminLogin(@Param("username") String username, @Param("password") String password);

  List<User> findAllUser();

  User findByCondition(@Param("username") String username, @Param("passowrd") String password);

  int DeleteUser(Integer uid);

  void insert(User user);

  User findByUid(Integer uid);

  void findBYCOde(String code);
}
